<?php
require_once '../../model/global.inc.php'; 
if(isset($_SESSION['logged_in']))
    {
        $user = unserialize($_SESSION['user']);
        $memid = $user->memid;
    }
if(isset($_GET['pass'])){
    $pass=$_GET['pass'];
    $sql_check = mysql_query("select memid from tblmember where password='".md5($pass)."' and memid = '$memid'") or die(mysql_error());
//echo $sql_check;
//exit();
    if(mysql_num_rows($sql_check) > 0)
    {
        echo '<font color="red">The old password is OK.</font>';
    }
    else
    {
        echo '<font color="red">The old password is not exists.</font>';
    }
}
else{
    echo "<font color=red> Please enter pass</font>";
}
?>